package com.iss.ljx.role.service;

import com.iss.ljx.mybatis.entity.PtDutyEntity;
import com.iss.ljx.mybatis.entity.PtRoleEntity;
import com.iss.ljx.mybatis.flexigrid.PadingRstType;
import com.iss.ljx.mybatis.flexigrid.PagingBean;
import com.iss.ljx.mybatis.ztree.ZtreeEntity;
import com.iss.ljx.role.entity.SearchRoleEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleService {
    PadingRstType<PtRoleEntity> queryRoleListPage(SearchRoleEntity search, PagingBean paging);
    List<ZtreeEntity> queryMenuByRoleId(String roleUuid);
    void saveMenuIdAndRoleId(String roleUuid, String menuArray);
    void roleAdd(PtRoleEntity ptRoleEntity);
    void roleUpdate(PtRoleEntity ptRoleEntity);
    void roleDelete(PtRoleEntity ptRoleEntity);
    void saveUserIdAndRoleId(String userUuid, String roleArray);
}
